﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QLVB/Admin/Admin.master" AutoEventWireup="true" CodeFile="QuanLyVanBan.aspx.cs" Inherits="QLVB_Admin_QuanLyVanBan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style8
        {
        }
        .style9
        {
        }
        .style10
        {
            width: 100px;
        }
        .style15
        {
            text-align: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="border-style: double; width: 758px;">
        <tr>
            <td class="style6" style="200px; text-align: center;" valign="top" colspan="2">
                <asp:Label ID="lblTieuDe" runat="server" style="text-decoration: underline" 
                        Text="QUẢN LÝ VĂN BẢN"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style6" style="200px; text-align: center;" valign="top" colspan="2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style10" style="200px;" valign="top">
                                    <asp:CheckBox ID="chkSoVanBan" runat="server" AutoPostBack="True" 
                                        Text="Số văn bản:" 
                    oncheckedchanged="chkSoVanBan_CheckedChanged" />
            </td>
            <td class="style15" style="758px: ;" valign="top">
                <asp:TextBox ID="txtSoVanBan" runat="server" 
                style="margin-left: 0px" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style10" style="200px;" valign="top">
                                    <asp:CheckBox ID="chkNgayTu" runat="server" AutoPostBack="True" 
                                        oncheckedchanged="chkNgayTu_CheckedChanged" 
                    Text="Từ ngày:" />
            </td>
            <td class="style9" style="758px: ;" valign="top">
                                    <asp:TextBox ID="txtNgayTu" runat="server" Enabled="False"></asp:TextBox>
                                    <asp:Calendar ID="calNgayTu" runat="server" BackColor="White" 
                                        BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
                                        Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" 
                                        Width="200px" onselectionchanged="calNgayTu_SelectionChanged" 
                                        Visible="False">
                                        <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                                        <NextPrevStyle VerticalAlign="Bottom" />
                                        <OtherMonthDayStyle ForeColor="#808080" />
                                        <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                        <SelectorStyle BackColor="#CCCCCC" />
                                        <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                                        <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                        <WeekendDayStyle BackColor="#FFFFCC" />
                                    </asp:Calendar>
                                </td>
        </tr>
        <tr>
            <td class="style10" style="200px;" valign="top">
                                    <asp:CheckBox ID="chkNgayDen" runat="server" AutoPostBack="True" 
                                        oncheckedchanged="chkNgayDen_CheckedChanged" 
                    Text="Đến ngày:" />
            </td>
            <td class="style9" style="758px: ;" valign="top">
                                    <asp:TextBox ID="txtNgayDen" runat="server" Enabled="False"></asp:TextBox>
                                    <asp:Calendar ID="calNgayDen" runat="server" BackColor="White" 
                                        BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
                                        Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" 
                                        Width="200px" onselectionchanged="calNgayDen_SelectionChanged" 
                                        Visible="False">
                                        <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                                        <NextPrevStyle VerticalAlign="Bottom" />
                                        <OtherMonthDayStyle ForeColor="#808080" />
                                        <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                        <SelectorStyle BackColor="#CCCCCC" />
                                        <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                                        <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                        <WeekendDayStyle BackColor="#FFFFCC" />
                                    </asp:Calendar>
                                </td>
        </tr>
        <tr>
            <td class="style10" style="200px;" valign="top">
                &nbsp;</td>
            <td class="style9" style="758px: ;" valign="top">
                <asp:Button ID="btnTimKiem" runat="server" Text="Tìm kiếm" Width="100px" 
                    onclick="btnTimKiem_Click" />
            </td>
        </tr>
        <tr>
            <td class="style8" style="200px;" valign="top" colspan="2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style8" style="200px;" valign="top" colspan="2">
                <asp:GridView ID="gvKetQuaTimKiem" runat="server" AutoGenerateColumns="False" 
                    Width="758px" AllowPaging="True" Caption="CHỌN VĂN BẢN CẦN XÓA HIỂN THỊ" 
                    DataKeyNames="MaVanBan" 
                    onrowcancelingedit="gvKetQuaTimKiem_RowCancelingEdit" 
                    onrowediting="gvKetQuaTimKiem_RowEditing" 
                    onrowupdating="gvKetQuaTimKiem_RowUpdating" 
                    onpageindexchanging="gvKetQuaTimKiem_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaVanBan" runat="server" 
                                                Enabled="False" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="718px: ;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblSoVB" runat="server" Text="Số văn bản:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblSoVanBan" runat="server" Text='<%# Eval("SoVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenVB" runat="server" Text="Tên văn bản:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblTenVanBan" runat="server" Text='<%# Eval("TenVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaLoaiVB" runat="server" Text="Loại văn bản:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaLoaiVanBan" runat="server" 
                                                Text='<%# Eval("MaLoaiVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaNguoiSoanThaoVB" runat="server" Text="Người soạn thảo:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaNguoiSoanThaoVanBan" runat="server" 
                                                Text='<%# Eval("MaNguoiSoanThao") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblNgayKiemSoatVB" runat="server" Text="Ngày phát hành:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblNgayKiemSoatVanBan" runat="server" 
                                                Text='<%# Eval("NgayKiemSoat") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblNoiDungVB" runat="server" Text="Nội dung văn bản:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblNoiDungVanBan" runat="server" 
                                                Text='<%# Eval("NoiDungVanBan") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblButPheGiamDoc_" runat="server" Text="Bút phê giám đốc:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblButPheGiamDoc" runat="server" 
                                                Text='<%# Eval("NoiDungButPhe") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblNoiNhanVB" runat="server" Text="Nơi nhận văn bản:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblNoiNhanVanBan" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblFileDinhKem" runat="server" Text="File đính  kèm:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:HyperLink ID="hlnkTenVanBan" runat="server" 
                                                NavigateUrl='<%# "../VanBanLuuTru" + "/" + Eval("TenFile") %>' 
                                                Text='<%# Eval("TenFile") %>'></asp:HyperLink>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblGhiChu" runat="server" ForeColor="Red" 
                                                Text="Lý do xóa hiển thị:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtGhiChu" runat="server" BackColor="#FFFF99" Width="318px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CommandField ShowEditButton="True" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        </table>
</asp:Content>

